package com.yhp.service.impl;

import com.yhp.bean.Role;
import com.yhp.dao.RoleDao;
import com.yhp.dao.impl.RoleDaoImpl;
import com.yhp.service.RoleService;

import java.util.List;

public class RoleServiceImpl implements RoleService {
    private RoleDao roleDao=new RoleDaoImpl();


    @Override
    public List<Role> selectAll() {
        return roleDao.selectAll();
    }

    @Override
    public int deleteById(int id) {
        return roleDao.deleteById(id);
    }

    @Override
    public int updateRole(Role role) {
        return roleDao.updateRole(role);
    }

    @Override
    public int insertRole(Role role) {
        return roleDao.insertRole(role);
    }

    @Override
    public Role findById(int id) {
        return roleDao.findById(id);
    }
}
